package com.xqls.dal.dao;

import java.util.List;
import java.util.Map;

import com.xqls.dal.model.Alarm;
import com.xqls.dal.model.AlarmExample;

public interface AlarmDao {
	/**
	 * 添加报警信息
	 * @param alarm
	 * @return
	 */
	int insert(Alarm alarm);
	
	 /**
     * 更改报警状态
     * @param map
     * @return
     */
    int updateAlarmStatus(Map<String, Object> map);
    /**
     * 查询范围内最小的时间
     * @param map
     * @return
     */
    Map<String, Object> selectMinTime(Map<String, Object> map);
    
    List<Map<String, Object>> selStatusAlarm(Map<String, Object> map);
    
    List<Alarm> getAlarmByExample(AlarmExample example);
    
    int updateAlarmData(Alarm alarm);
}
